import request from '@/config/request.js';

// 点对点叫车
export const pointToPointAPI = (params) => request.post('/pda/pointToPoint', params)

// 容器回库
export const containerReturnBackAPI = (params) => request.post('/pda/emptyContainerReturn', params)

// 车间列表
export const plantListAPI = (params) => request.get('/pda/plantList', params)

// 线体列表
export const getLineListByPlantAPI = (params) => request.get(`/pda/lineList/${params.plant}`)

// 工位列表
export const getTrrackListByPlantAndLineAPI = (params) => request.get(`/pda/trackList/${params.plant}/${params.lineId}`)

// 车间线体工位获取 物料列表
export const getcontainerListAPI = (params) => request.get(`/pda/containerList/${params.plant}/${params.lineId}/${params.track}`)

// 补料
export const dispenseKitAPI = (params) => request.post('/pda/dispenseKit', params)

// 优先执行
export const priorityExecuteAPI = (params) => request.post(`/pda/task/prior/${params}`, params)

// 取消
export const cancelAPI = (params) => request.post(`/pda/task/canceltask/${params}`, params)

// 配送任务
export const pdaTaskListAPI = (params) => request.post('/pda/task/list', params)

// 强制完成
export const agvMissionCompleteAPI = (params) => request.post('/pda/agv/mission/complete', params)

// 储位解绑
export const storageClearAPI = (params) => request.post('/storage/clear', params)

// 储位绑定
export const storageBindAPI = (params) => request.post(`/pda/container/bind/${params.containerCode}/${params.storageCode}`)


// 反复调用
export const frequentAPI = (params) => request.post('/api/NET/ManualCallMat', params)

// 补料
export const replenishAPI = (params) => request.post('/api/NET/CallMaterial', params)

// 无领料单查物料(反复调用)
export const getListNotOrderAPI = (params) => request.post('/pda/dcs/getWoMatInfo', params)

// 查询库存信息
export const checkInventoryAPI = (params) => request.post('/pda/stockMaterial/getStockMaterial', params)

// 人工发料
export const manualDispatchAPI = (params) => request.post('/pda/ManualDistribution', params)
